package io.yunho.yunho.interview.two.java8.lambda;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: Jason
 * @date: 2021/5/7 20:42
 * @description:
 */
@FunctionalInterface
interface IntfceVar{
    void doubleNum(int i);
}

public class VarDemo {
    public static void main(String[] args) {
//        String ss = "asda";
////        ss="2222";
        List<String> ss = new ArrayList<>();//这里
//        ss=new ArrayList<>();//当去掉注释会报错
        IntfceVar intfceVar = s-> System.out.println(ss);

    }
}
